#include "add_roundkey.h"
#include "types.h"
#include "field.h"

void add_roundkey(byte* state, const byte* roundkey)
{
	int row,col;
	for(row = 0; row < 4; ++row)
	{
		for(col = 0; col < 4; ++col)
		{
			state[row * 4 + col] = element_add(state[row * 4 + col], roundkey[row * 4 + col]);
		}
	}
}
